127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
{% for host in groups['master'] %}
{{ host }} {{ "master"~loop.index }}
{% endfor %}

{% for host in groups['node'] %}
{{ host }} {{ "node"~loop.index }}
{% endfor %}

{% for host in groups['etcd'] %}
{{ host }} {{ "etcd"~loop.index }}
{% endfor %}